const url = "http://rap2api.taobao.org/app/mock/321822/brn";
//dom
const div = document.querySelector(".swiper-wrapper");
//fetch
fetch(url)
  .then((res) => res.json())
  .then((data) => {
    let str ='';
    data.array.forEach(item => {
        str += `
        <div class="swiper-slide">
          <img src="./images/chaohua(guangchang)/7.jpg" alt="">
          <li>
              <p>${item.title}</p>
              <p>${item.content}</p>
          </li>
        </div>
        `;
    });
    div.innerHTML = str;
  });

        
  
